package com.buba.livenuniappservernew.api.recipe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.buba.livenuniappservernew.api.Enum.DeleteEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("recipe")
@ApiModel(value="Recipe对象", description="菜单表")
public class Recipe {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "菜单主键id ")
    private Integer id;

    @ApiModelProperty(value = "食谱名称 ")
    private String recipeName;

    @ApiModelProperty(value = "食谱图片 ")
    private Integer recipeFileId;

    @ApiModelProperty(value = "调料成分 ")
    private String flavour;

    @ApiModelProperty(value = "食材成分 ")
    private String ingredients;

    @ApiModelProperty(value = "食物成分 ")
    private String comestible;

    @ApiModelProperty(value = "介绍 ")
    private String introduce;

    @ApiModelProperty(value = "食谱状态（0上架，1下架） ")
    private Integer recipeType;

    @ApiModelProperty(value = "添加时间 ")
    private Date createTime;

    @ApiModelProperty(value = "修改时间 ")
    private Date updateTime;

    @ApiModelProperty(value = "删除标识（0显示，1删除） ")
    private DeleteEnum deleteEnum;

    @ApiModelProperty(value = "热量 ")
    private String heat;

    @ApiModelProperty(value = "食物类型：0：素食1：肉食2：低碳 ")
    private Integer footType;

    @TableField(exist = false)
    private String fileUuidName;
}
